home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / networking / osi / x500 / quipu-patches / starting.pid.diff < prev    next >
Text File  |  1993-08-05  |  987b  |  43 lines

  1. *** quipu/dsa.c.bak    Sun Apr 11 15:16:36 1993
  2. --- quipu/dsa.c    Sat May  1 09:32:32 1993
  3. ***************
  4. *** 233,238 ****
  5. --- 233,252 ----
  6.       LLOG (log_dsap, LLOG_NOTICE, ("Process size = %d bytes", proc_size));
  7.   #endif
  8.   
  9. +     {
  10. +     char    filebuf[BUFSIZ];
  11. +     FILE   *fp;
  12. +     (void) sprintf (filebuf, "%sSTARTINGPID", treedir);
  13. +     if (fp = fopen (filebuf, "w")) {
  14. +         (void) fprintf (fp, "%d\n", getpid ());
  15. +         (void) fclose (fp);
  16. +     }
  17. +     else
  18. +         LLOG (log_dsap,LLOG_EXCEPTIONS,("Can't open STARTINGPID file %s",
  19. +         filebuf));
  20. +     }
  21.       if(dsa_init() == NOTOK)
  22.       {
  23.       fatal(-14,"Couldn't initialise the DSA!!");
  24. ***************
  25. *** 782,788 ****
  26.   #endif
  27.               }
  28.   
  29. !         sleep (secs);    /* give connections time to clear */
  30.           (void) execv (isodefile(sargv[0], 1),sargv);
  31.           exit (-19);
  32.       }
  33. --- 796,802 ----
  34.   #endif
  35.               }
  36.   
  37. !         /* sleep (secs);    /* give connections time to clear */
  38.           (void) execv (isodefile(sargv[0], 1),sargv);
  39.           exit (-19);
  40.       }
  41.